package com.dwxt.cdms.dao;

import com.dwxt.cdms.applets.dto.IndexGraphDayResDTO;
import com.dwxt.cdms.applets.dto.IndexGraphResDTO;
import com.dwxt.cdms.applets.dto.IndexReqDTO;
import com.dwxt.cdms.entity.LbWatchData;
import com.dwxt.cdms.entity.LbWatchDataExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LbWatchDataMapper {
    int countByExample(LbWatchDataExample example);

    int deleteByExample(LbWatchDataExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LbWatchData record);

    int insertSelective(LbWatchData record);

    List<LbWatchData> selectByExample(LbWatchDataExample example);

    LbWatchData selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LbWatchData record, @Param("example") LbWatchDataExample example);

    int updateByExample(@Param("record") LbWatchData record, @Param("example") LbWatchDataExample example);

    int updateByPrimaryKeySelective(LbWatchData record);

    int updateByPrimaryKey(LbWatchData record);

    List<LbWatchData> selectGroup(String name,Integer stationId);

    LbWatchData selectLastByCustomerId(Integer customerId);

    List<IndexGraphDayResDTO> selectGraphHeartbeatWithDay(IndexReqDTO indexReqDTO);

    List<IndexGraphDayResDTO> selectGraphOxygenWithDay(IndexReqDTO indexReqDTO);

    List<IndexGraphDayResDTO> selectGraphPressureWithDay(IndexReqDTO indexReqDTO);

    List<LbWatchData> selectPageByCustomerId(Integer customerId);

    List<IndexGraphResDTO> selectGraphData(IndexReqDTO indexReqDTO);

    List<IndexGraphResDTO> selectGraphPressureData(IndexReqDTO indexReqDTO);

    LbWatchData selectByDeviceMac(String deviceMac);
}